#pragma once

#include <msg_type.h>
//#include <../global/msg_type.h>
#include <boost/asio.hpp>
#include <memory>
#include <iostream>

struct MsgNode {
	MsgNode(int maxLen);
	virtual ~MsgNode();
	void clear();

	uint64_t totalLen_;
	uint64_t curLen_;
	char* data_;
};

struct SendNode :public MsgNode{

	//SendNode(char* msg, short msgId, int maxLen);

	SendNode(const char* msg, short msgId, int maxLen);

	short msgId_;
};

struct RecvNode:public MsgNode {
	RecvNode(short msgId, int maxLen);
	short msgId_;
};